*, *::after, *::before {
  box-sizing: border-box;
  font-size: 70px;
  font-weight: bold;

  --background-color: #f2f1ed;
  --flip-card-top: #f7f7f7;
  --flip-card-bottom: #FFF;
  --flip-card-text-color: #de4848;
  --border-radius: 6px;
}

body{
  color: var(--flip-card-text-color);
  background-color: var(--background-color);
}

.flip_card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0px 3px 8px #b7b7b7;
  border-radius: var(--border-radius);
}

.top,
.bottom,
.flip_card .top_flip,
.flip_card .bottom_flip {
  height: .75em;
  line-height: 1;
  padding: .25em;
  overflow: hidden;
}

.flip_card .top,
.flip_card .top_flip{
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  background-color: var(--flip-card-top);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}


.flip_card .bottom,
.flip_card .bottom_flip{
  display: flex;
  align-items: flex-end;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  background-color: var(--flip-card-bottom);
}

.flip_card .top_flip {
  position: absolute;
  width: 100%;
  animation: flip-top 250ms ease-in;
  transform-origin: bottom;
}

@keyframes flip-top {
  100% {
    transform: rotateX(90deg);
  }
}

.flip_card .bottom_flip {
  position: absolute;
  bottom: 0;
  width: 100%;
  animation: flip-bottom 250ms ease-out 250ms;
  transform-origin: top;
  transform: rotateX(90deg);
}

@keyframes flip-bottom {
  100% {
    transform: rotateX(0deg);
  }
}

.container{
  display: flex;
  gap: 0.5em;
  justify-content: center;
}

.container_segment{
  display: flex;
  flex-direction: column;
  gap: .1em;
  align-items: center;
}

.container_segment .segment_title{
  font-size: .5em;
  text-align: center;
}

.segment {
  display: flex;
  gap: .1em;
}

.segment-title {
  font-size: 1rem;
}